This ensures that we snap back to the correct size when the
source actor has been scaled to 0.
https://bugzilla.gnome.org/show_bug.cgi?id=787901
// Snap the clone back to its source
[x, y] = this._dragActorSource.get_transformed_position();
let [sourceScaledWidth, sourceScaledHeight] = this._dragActorSource.get_transformed_size();
- scale = this._dragActor.width / sourceScaledWidth;
+ scale = sourceScaledWidth ? this._dragActor.width / sourceScaledWidth : 0;
} else if (this._dragOrigParent) {
// Snap the actor back to its original position within
// its parent, adjusting for the fact that the parent